define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");

	var Model = function(){
		this.callParent();
	};

	Model.prototype.modelParamsReceive = function(event){
		console.log(this.params.data);
		this.comp("pointData").loadData(this.params.data);

	};


   

	

	Model.prototype.list1Click = function(event){
		if(this.comp("pointData").getCurrentRow().val('check')){
			this.comp("pointData").getCurrentRow().val('check',0);
			
		}else{
			this.comp("pointData").getCurrentRow().val('check',1);
			
		}
	};
	
	
    //确定选择点位信息
	Model.prototype.button1Click = function(event){
	
		var selectPoint = this.comp("pointData").find(['check'], [1], false, false, false);
		this.comp("windowReceiver1").windowEnsure(selectPoint);

	};

	

	return Model;
});